/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package proteoman.data;

import java.util.Collection;
import java.util.HashSet;

/**
 *
 * @author gjj
 */
public class ProteomicDataImpl implements ProteomicData {

    protected Collection<ProteinData> proteins;
    protected Collection<PeptideData> peptides;

    public ProteomicDataImpl() {
        proteins = new HashSet<ProteinData>();
        peptides = new HashSet<PeptideData>();
    }

    public Collection<ProteinData> getProteins() {
        return proteins;
    }

    public Collection<PeptideData> getPeptides() {
        return peptides;
    }

    public boolean addProtein(ProteinData protein) {
        return proteins.add(protein);
    }

    public boolean addPeptide(PeptideData peptide) {
        return peptides.add(peptide);
    }

    public boolean removeProtein(ProteinData protein) {
        return proteins.remove(protein);
    }

    public boolean removePeptide(PeptideData peptide) {
        return peptides.remove(peptide);
    }

    public void clear() {
        proteins.clear();
        peptides.clear();
    }
    
}
